package com.cz.auth.mapper;

import com.cz.auth.entity.OauthClientDetails;
import org.apache.ibatis.annotations.Insert;

/**
 * <p>客户端mapper</p>
 * <p>
 * <pre>
 * @author gitamacai
 * @date 2019/11/14 10:09
 * </pre>
 */
public interface OauthClientDetailsMapper {
    /**
     * 插入授权客户端
     *
     * @param clientDetails 授权客户端对象
     * @return 影响行数
     */
    @Insert("insert into oauth_client_details values(#{clientId}, #{resourceIds}, #{clientSecret}, #{scope}, #{authorizedGrantTypes}, #{webServerRedirectUri}, " +
            "#{authorities}, #{accessTokenValidity}, #{refreshTokenValidity}, #{additionalInformation}, #{autoapprove})")
    int insert(OauthClientDetails clientDetails);
}
